package com.example.lexiangbackend.dto;

import com.example.lexiangbackend.entity.User;

public class AuthResponse {
    
    private boolean success;
    private String message;
    private String token;
    private String role;
    private User user;
    private String verificationCode; // 开发时显示验证码

    // 构造函数
    public AuthResponse() {}

    public AuthResponse(boolean success, String message, String token, String role, User user) {
        this.success = success;
        this.message = message;
        this.token = token;
        this.role = role;
        this.user = user;
    }

    public AuthResponse(boolean success, String message, String token, String role, User user, String verificationCode) {
        this.success = success;
        this.message = message;
        this.token = token;
        this.role = role;
        this.user = user;
        this.verificationCode = verificationCode;
    }

    // Getters and Setters
    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getVerificationCode() {
        return verificationCode;
    }

    public void setVerificationCode(String verificationCode) {
        this.verificationCode = verificationCode;
    }
} 